/*
 * Copyright 2006-2011 www.holylin.com
 *
 * All right reserved.
 */
package com.holylin.learning.java.language.enumerator;

/**
 * @author holylin
 * @since 2011-3-22
 **/
public enum EnumWithValues {

	A(10), B(20), C(30);

	private final int value;

	private EnumWithValues(int value) {
		this.value = value;
	}

	public int value() {
		return this.value;
	}

	public static void main(String[] args) {

		for (EnumWithValues T : EnumWithValues.values()) {
			System.out.println(T + ":" + T.value());
		}

	}

}
